package com.ctos.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ctos.common.Result;
import com.ctos.dto.DishDto;
import com.ctos.entity.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {

    void saveWithFlavor(DishDto dishDto);

    Result<Page<DishDto>> foodPage(Integer page, Integer pageSize, String name);

    DishDto getDishDto(Long id);

    void updateDishAndDishFlavor(DishDto dishDto);

    void delete(Long[] ids);

    void modifyStatus(Integer status ,Long[] ids);

    List<DishDto> dishList(Dish dish);

}


